import * as actionTypes from './constants';

const defaultstate = {
    
    searchResult:{},
    searchKeyWords:{},
    searchHotDetail:[]
    
    
}

const reducer = (state = defaultstate, action) => {
    // console.log(action,'action');
    switch (action.type) {
      
        case actionTypes.GET_SEARCH:
            return {...state,searchResult:action.data.result}
        case actionTypes.GET_SEARCHHOT:
            return {...state,searchHotDetail:action.data.data}
        
        default:
            return state;
    }
    
}
export default reducer;